export default{
    getDate(d){
        var month = d.getMonth() + 1;
        var day = d.getDate();
        var hour = d.getHours();
        var minute = d.getMinutes();
        var second = d.getSeconds();
        if(month<10)month = '0'+month;
        if(day<10)day = '0'+day;
        if(hour<10)hour = '0'+hour;
        if(minute<10)minute = '0'+minute;
        if(second<10)second = '0'+second;
        var datetime = d.getFullYear()+'-'+month+'-'+day+' '+hour+':'+minute+':'+second;
        return datetime;
    }
}